
#ifndef PAGESETTINGDIALOG_H
#define PAGESETTINGDIALOG_H

#include <BLabel>
#include <BSpinBox>
#include <BFloatSpinBox>
#include <BDialog>

using namespace BWE;

class PageSettingDialog : public BDialog
{
	BOBJECT(PageSettingDialog);
public:
	PageSettingDialog(BWidget* parent = 0);
	~PageSettingDialog();

protected:
	void slotStepSpinBoxEditFinished();
	void slotSpreadWidthEditFinished(BObject* object, const BValue& value);
	void slotSpreadHeightEditFinished(BObject* object, const BValue& value);

protected:
	virtual void showEvent(const BEvent& event);

	virtual void updateEvent(const BEvent& event);

	virtual void styleEvent(const BEvent& event);

private:
	BLabel*				_descLabel;
	BFloatSpinBox*		_stepSpinBox;
	BLabel*				_unitLabel;
	BSpinBox*			_spreadWidthSpinBox;
	BSpinBox*			_spreadHeightSpinBox;
};

#endif
